///**
///* Description: 渐变折线图model
///*/
class GradientLineChartModel {
  String title;

  //比例(0.0-1.0)
  double proportion;

  // 显示文本
  String text;

  GradientLineChartModel({this.title, this.proportion = 0.0, this.text}) {
    if (this.proportion != null && this.proportion >= 1) {
      this.proportion = 1.0;
    }
    if (this.proportion != null && this.proportion <= 0) {
      this.proportion = 0.0;
    }
  }
}
